#include <stdio.h>
#include <string.h>

int main() {
    char input[1000];
    fgets(input, sizeof(input), stdin);
    input[strcspn(input, "\n")] = 0;
    char cards[13][3];
    printf("%ld\n", strlen(cards));
    return 0;
}